package com.bw.service;

import com.bw.dao.carDao;
import com.bw.domain.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class carServiceImpl implements carService {
    @Autowired
    carDao carDao;
    @Override
    public List<Car> getList(String name, String carno) {
        return carDao.getList(name,carno);
    }

    @Override
    public int add(Car car) {
        return carDao.add(car);
    }

    @Override
    public int del(int cid) {
        return carDao.del(cid);
    }
}
